package com.test.views;

import com.test.R;
import com.test.views.ui.GalleryFlow;
import com.test.views.ui.ImageAdapter;

import android.app.Activity;
import android.os.Bundle;

public class CoverFlow extends Activity {
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.coverflow);
		Integer[] images = { R.drawable.hawana_0, R.drawable.huanyinghei_6,
				R.drawable.wulonghui_24, R.drawable.wulonghui_28,
				R.drawable.xuanfenghei_10 };

		ImageAdapter adapter = new ImageAdapter(this, images);
		adapter.createReflectedImages();

		GalleryFlow galleryFlow = (GalleryFlow) findViewById(R.id.Gallery01);
		galleryFlow.setAdapter(adapter);

	}
}